﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Codeplex.SPCleanup.SPUtilities.Cleanup
{
    public class SiteDefinition
    {
        private Guid siteDefinitionID;
        private Uri siteUri;
        private bool enabled;
        private IList<Site> sites;

        public SiteDefinition()
        {
            // initiatize to empty
            siteDefinitionID = Guid.Empty;
            sites = new List<Site>();
        }

        public Guid ID
        {
            get { return siteDefinitionID; }
            set { siteDefinitionID = value; }
        }
        
        public Uri SiteUri
        {
            get { return siteUri; }
            set { siteUri = value; }
        }
        
        public bool Enabled
        {
            get { return enabled; }
            set { enabled = value; }
        }

        public IList<Site> Sites
        {
            get { return sites; }
            set { sites = value; }
        }

        public bool Validate()
        {
            return (Guid.Empty != siteDefinitionID && null != siteUri) ? true : false;
        }

    }
}
